
package com.wyzz.hr.pojo;

import java.util.List;
import java.util.Map;

import com.wyzz.hr.base.ComonBeans;
import com.wyzz.hr.pojo.base.BaseInmatchBasic;


public class InmatchBasic extends BaseInmatchBasic {

	public InmatchBasic() {
	}

	public InmatchBasic(String imbId) {
		super(imbId);
	}

	public InmatchBasic(String imbId, Iodef imbIo, String imbFieldName,
			String imbFieldDesc, String imbDataType, Integer imbDetectError,
			Integer imbRequired, Integer imbSortId, String imbSample) {
		super(imbId, imbIo, imbFieldName, imbFieldDesc, imbDataType,
				imbDetectError, imbRequired, imbSortId, imbSample);
	}

	public void setAllMaps() {
		imbDataTypeMap = ComonBeans.getValuesToMap(PROP_IMB_DATA_TYPE,
				new boolean[0]);
		imbRequiredMap = ComonBeans.getValuesToMap("yesOrNo", new boolean[0]);
		imbDetectErrorMap = ComonBeans
				.getValuesToMap("yesOrNo", new boolean[0]);
		formatDesc = ComonBeans.getParameterValue(PROP_IMB_FORMAT,
				new String[] { super.getImbDataType() });
	}

	public void setImbDataType(String imbDataType) {
		super.setImbDataType(imbDataType);
		if (imbDataType != null && imbDataType.length() > 0)
			imbDataTypeMean = ComonBeans.getParameterValue(PROP_IMB_DATA_TYPE,
					new String[] { imbDataType });
		else
			imbDataTypeMean = null;
	}

	public void setImbRequired(Integer imbRequired) {
		super.setImbRequired(imbRequired);
		if (imbRequired != null)
			imbRequiredMean = ComonBeans.getParameterValue("yesOrNoImg",
					new String[] { imbRequired.toString() });
		else
			imbRequiredMean = null;
	}

	public void setImbDetectError(Integer imbDetectError) {
		super.setImbDetectError(imbDetectError);
		if (imbDetectError != null)
			imbDetectErrorMean = ComonBeans.getParameterValue("yesOrNoImg",
					new String[] { imbDetectError.toString() });
		else
			imbDetectErrorMean = null;
	}

	public void setImList(List imList) {
		this.imList = imList;
	}

	public List getImList() {
		return imList;
	}

	public String getFormatDesc() {
		return formatDesc;
	}

	public Map getImbDataTypeMap() {
		return imbDataTypeMap;
	}

	public String getImbRequiredMean() {
		return imbRequiredMean;
	}

	public Map getImbRequiredMap() {
		return imbRequiredMap;
	}

	public String getImbDetectErrorMean() {
		return imbDetectErrorMean;
	}

	public Map getImbDetectErrorMap() {
		return imbDetectErrorMap;
	}

	public String getImbDataTypeMean() {
		return imbDataTypeMean;
	}

	private static final long serialVersionUID = 1L;
	private String formatDesc;
	private String imbDataTypeMean;
	private Map imbDataTypeMap;
	private String imbRequiredMean;
	private Map imbRequiredMap;
	private String imbDetectErrorMean;
	private Map imbDetectErrorMap;
	private List imList;
}
